package cn.mesmile.juc.lock;

import java.util.ArrayList;

/**
 * @author zb
 * @date 2021/11/13 13:07
 * @Description 自定义加锁
 */
public class ArrayListLock<E> extends ArrayList<E> {

    @Override
    public synchronized boolean add(E e) {
        return super.add(e);
    }

    @Override
    public synchronized E remove(int index) {
        return super.remove(index);
    }

}
